import store from './Store'
// token的字段名称
let key = 'token'

// 设置token
export const setToken = token => store.set(key, token)

// 获取token
export const getToken = () => store.get(key)

// 删除token
export const delToken = () => store.remove(key)

// 判断token是否存在
export const hasToken = () => store.get(key) == '' ? false : true

